<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<input type="text" class="sss" id="value">
<button onclick="ss()" value="ss"></button>
<body>
<script>

      let g=document.getElementById('value');
      let as=g.value;
      g.bind('input propertychange',function () {
          console.log(g.value)
      })
</script>
</body>
</html>